﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TrainNeedsEdit.aspx.cs" Inherits="Web.TrainNeedsEdit" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML>
	<HEAD>
	<title></title>
    <base target="_self" />
	<meta content="ie=7" http-equiv="x-ua-compatible">
	<script src="Scripts/jquery-1.7.min.js" type="text/javascript"></script>
	<link href="Styles/validate.css" rel="stylesheet" type="text/css">
	<script type="text/javascript" src="Scripts/easy_validator.pack.js"></script>
	<LINK rel="stylesheet" href="Styles/Style01.css">
	<script LANGUAGE="JavaScript">
	    $(function () {
	        $("[reg]").parents("td").prev().append("<font color='#ff0000'>*</font>");
	        $("textarea").each(function () { this.style.height = this.scrollHeight + 16 + 'px'; });
	        $("textarea").keydown(function () { this.style.height = this.scrollHeight + 16 + 'px'; });
	        $("#btnSave").click(function () { return formValidate(); });
	        $("#btnSubmit").click(function () { return formValidate(); });
	    });
	    function formValidate() {
            var isSubmit = true;
            $("form").find("[reg],[url]:not([reg])").each(function () {
                if (!validate($(this), this.tagName)) {
                    isSubmit = false;
                }
            });
            if (!isSubmit) {
                alert("请确认'红字或红框'处的输入正确!");
                return false;
            }
            return true;
        }
	</script>
	<style>
		h3,h4{margin:0;padding:0;margin-top:3px;}
	    TEXTAREA { OVERFLOW-Y: hidden;}
	    TABLE.s1 TD { PADDING-BOTTOM: 0px; PADDING-LEFT: 1px; PADDING-RIGHT: 1px; HEIGHT: 24px; PADDING-TOP: 0px }
	    INPUT[type=text],textarea { WIDTH: 100%; MARGIN-LEFT: -1px;color:#0099cb; }
	    em{float:left;}
	    .spec{background:#eee;font-weight:bolder;}
	</style>
	</HEAD>
	<body>
		<form id="Form1" method="post" runat="server">
		    <h4>广东太阳神集团.直销总部</h4>
		    <h3>2012年度 <%=trainNeed.DeptName%> 培训需求表</h3>
			<table class="s1">
				<tr><td colspan="4" class="spec">部门分析</td></tr>
                <tr><td>表单编号</td><td><%=trainNeed.FormNo %></td><td>申请时间</td><td><%=trainNeed.CreatDate.ToString("yyyy-MM-dd HH:mm:ss")%></td></tr>
                <tr><td>申请部门</td><td><%=trainNeed.DeptName %></td><td>申请人</td><td><%=empName%></td></tr>
				<tr>
					<td width="15%">工作事项<br />[部门主要工作要项]</td>
					<td width="35%"><textarea id="txtWorkItems" runat="server" title="不能为空!" reg="."></textarea></td>
					<td width="15%">年度工作目标<br />[部门主要工作达成的目标]</td>
					<td><textarea id="txtWorkTargets" runat="server" title="不能为空!" reg="."></textarea></td>
				</tr>
				<tr>
					<td>部门员工<br />普遍关注的问题</td>
					<td><textarea id="txtFocusIssue" runat="server" title="不能为空!" reg="."></textarea></td>
					<td>员工希望参与的<br />培训项目或培训形式</td>
					<td><textarea id="txtTrainItems" runat="server" title="不能为空!" reg="."></textarea></td>
				</tr>
				<tr><td colspan="4" class="spec">培训需求</td></tr>
				<tr>
					<td>基本培训<br />(岗位技能)</td>
					<td><textarea id="txtTrainBasic" runat="server" title="不能为空!" reg="."></textarea></td>
					<td>专业培训</td>
					<td><textarea id="txtTrainExpert" runat="server" title="不能为空!" reg="."></textarea></td>
				</tr>
				<tr>
					<td>管理培训</td>
					<td><textarea id="txtTrainManagement" runat="server" title="不能为空!" reg="."></textarea></td>
					<td>新晋培训</td>
					<td><textarea id="txtTrainAhead" runat="server" title="不能为空!" reg="."></textarea></td>
				</tr>
				<tr>
					<td>有关培训的<br />需求描述或合理化建议</td>
					<td colspan="3"><textarea id="txtTrainSuggestion" runat="server" title="不能为空!" reg="."></textarea></td>
				</tr>
			</table>
			<em>备注:此表由部门经理根据员工意见汇总、分析后填写.</em>
            <div style="text-align:right;margin-right:24px;margin-top:6px;">
                <asp:button runat="server" class=btn text="保存" id="btnSave" onclick="btnSave_Click"/>
                <asp:button runat="server" class=btn text="提交" id="btnSubmit" onclick="btnSubmit_Click" Visible="false"/>
                <input type=button class=btn value="关闭" onclick="window.close();" />
            </div>
		</form>
	</body>
</HTML>